package com.yeyks.config;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Administrator
 */
@ConfigurationProperties(prefix = "mq.config")
public class MqConfiguration {

    /**
     * 推送的mq的queue
     */
    String msName;

    /**
     * 推送的mq的exchange
     */
    String msExchange;

    /**
     * 推送的mq的key
     */
    String msKey;

    public String getMsName() {
        return msName;
    }

    public void setMsName(String msName) {
        this.msName = msName;
    }

    public String getMsExchange() {
        return msExchange;
    }

    public void setMsExchange(String msExchange) {
        this.msExchange = msExchange;
    }

    public String getMsKey() {
        return msKey;
    }

    public void setMsKey(String msKey) {
        this.msKey = msKey;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this,
                ToStringStyle.MULTI_LINE_STYLE);
    }
}
